/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-06-26     chenlei       the first version
 */
#ifndef APPLICATIONS_INC_MOTOR_APP_H_
#define APPLICATIONS_INC_MOTOR_APP_H_

#define PWM_DEV "pwm2"
#define PWM_DEV_CHAN 2
#define AIN1_PIN GET_PIN(A,2)
#define AIN2_PIN GET_PIN(A,3)
#define STYB_PIN GET_PIN(A,4)

int motor_pwm_init(void);
void motor_init(void);
void motor_start(void);
void motor_stop(void);
void motor_set_pwm(int pwmvalue);


#endif /* APPLICATIONS_INC_MOTOR_APP_H_ */
